#include<stdio.h>
int main()
{
    int q[102]={0,6,3,1,7,5,8,9,2,4},tail,head;
    head=1;
    tail=10;
    while(head<tail)
    {
        printf("%d ",q[head]);
        head++;

        q[tail]=q[head];
        head++;
        tail++;
    }
    getchar();getchar();
    return 0;
}

